<?php
session_start();
if($_SESSION['fl']!=1)
{
	header("Location:admin.php");
}



?><?php
$con=mysql_connect('localhost','root','');
if(!$con)
{
  die('could not connect:'.mysql_error());
  }
  mysql_select_db("ETrawelMart",$con);

if(isset($_GET["book_id"]))
{


$book_id=$_GET["book_id"];
$query= mysql_query("DELETE FROM customer_booking where book_id=$book_id")or die(mysql_error());
$query1= mysql_query("DELETE FROM payment where book_id=$book_id")or die(mysql_error());

}
 
  mysql_close($con);
?>
<script language="javascript"> 
alert ("Booking Deleted successfully");
		 window.location.href='adminbook.php'; </script> 